package org.example.tmk.service.impl;

import org.example.tmk.Dao.RoleDao;
import org.example.tmk.Dao.UserDao;
import org.example.tmk.pojo.Role;
import org.example.tmk.service.RoleService;

import java.util.Set;

public class RoleServiceImpl implements RoleService {
    private  RoleDao roleDao;

    public RoleServiceImpl(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    @Override
    public Set<Role> getAll() {
        return roleDao.queryAll();
    }
}
